
<div class="container blacklist" >
	<div class="col-md-8 blacklist_table">
			<h1>违规公告栏</h1>
			<table>
				<thead>
					<tr class="title bold" >
						<td class="border_right" width="20%">商家旺旺</td>
						<td class="border_right" width="20%">违规时间</td>
						<td width="60%">违规原因</td>
					</tr>
				</thead>
				<tbody>
					<?php 
					$odd = 0;
					foreach ($data as $row)
					{ 
						$odd++;
						$even = $odd % 2 == 1 ? 'odd' : 'even';
						
					?>
						<tr class="<?php echo $even?>">
							<td><?php echo $row->nick ?></td>
							<td>永久拉黑</td>
							<td><div class="cause"><?php echo $row->note ?></div></td>
							
						</tr>
					<?php 
					}
					?>
					
				</tbody>
			</table>
			<div class="pager" id="pager" ><?php echo $Page ?></div>
            
	</div>
	<div class="col-md-4 blacklist_side">
	
		<div>
			<img alt="" src="<?php echo Yii::app()->theme->baseUrl; ?>/assets/images/blacklist_select.jpg">
		</div>
		<div>
			<div class="select">
	 			<form action="" method="post">
				
	                <input type="text"  name="nick" value="<?php echo $nick ?>" placeholder="请输入旺旺名称" class="select_input"/><input type="submit" class="select_btn" value="" >
	                <div class="clearfix"></div>
				
				</form>
			</div>
		</div>
		<div class="select_info">
		<?php 
		if(!empty($nick) && !empty($info)):
		?>
		
			<div class="title_sibe bold">违规时间</div>
			<div>永久拉黑</div>
			<div class="title_sibe bold">违规原因</div>
			<div class="select_cause">
				<p><?php echo $info->note?>
				</p>
			</div>
				
		
		<?php
		else :
		?>
		<div>没有记录</div>
		<?php
		endif;
		?>
		</div>
	</div>
	<div class="clearfix"></div>
</div>

<script type="text/javascript">

$(".cause").mouseover(function() {
    
    $(this).css("overflow","visible");
    $(this).css("height","auto");
});

$(".cause").mouseout(function() {
	
    $(this).css("overflow","hidden");
    $(this).css("height","20px");
});

</script>
